import request from '@/util/request.js'

export const selectAdminList = function (params = {}) {
  return request.get('/admin/admin', {
    params,
  })
}

export const deleteAdminList = function (params = {}) {
  return request.delete('/admin/admin', {
    params,
  })
}

export const insertAdmin = function (data = {}) {
  return request.post('/admin/admin', data)
}

export const updateAdmin = function (data = {}) {
  return request.put('/admin/admin', data)
}
